import request from '@/utils/request'
// 获取员工列表
export const getEmployeeList = params => request.get('/sys/user', {
  params
})
// 导出员工
export const exportEmployee = () => request.get('/sys/user/export', {
  responseType: 'blob' // 使用blob 接收服务器返回的二进制流
})
// 导入员工模板
export const importTemplate = () => request.get('/sys/user/import/template', {
  responseType: 'blob' // 二进制文件流
})
// 上传 excel
export const uploadExcel = data => request.post('/sys/user/import', data)
// 删除员工
export const delEmployee = id => request.delete(`/sys/user/${id}`)
